﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShippingOrderDetail.aspx.cs"
    Inherits="WMS6.Web.Outbound.ShippingOrderDetail" meta:resourcekey="Page" %>

<%@ Register Src="../UserControls/LotAtrributeCtrl.ascx" TagName="LotAtrributeCtrl"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ShippingOrderDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
            setLotValue();
        }
        
        //弹出窗口选择货品
        function selectSku() {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID&ownerID=' + escape(document.getElementById("hdnOwnerID").value), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
                document.getElementById("hdnSkuID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"
               __doPostBack('<%=ASkuID.ClientID.Replace('_','$')%>','');
            }
        }
        
        //弹出窗口选择包装代码
        function selectPack()
        {
            var rtnValue = popModalWindow('../Configuration/PackQuery.aspx?action=txtPackID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPackID").focus();
                document.getElementById("txtPackID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"
                __doPostBack("txtPackID_TextChanged","");
            }
        }
         //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1";
                __doPostBack("txtVendorID_TextChanged","");
            }
        }
        //设置批次属性值
        function setLotValue()
        {
            for(var i =1;i<11;i++)
            {                
                if(document.getElementById("LotAtrributeCtrl1_ctrl"+i) != null)
                {
                    if(document.getElementById("hdnType").value == "")  //非编辑状态，从ReceiptDetail中批次属性值
                    {
                        if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value.indexOf(",") == 0)
                        {
                            if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value == "")
                            {
                                document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                            }
                        }
                    }
                    else  //编辑状态 取批次属性的默认值
                    {
                        if(document.getElementById("hdnLot"+i).value.indexOf(",") > 0)
                        {
                            document.getElementById("hdnLot"+i).value = "";
                        }
                        document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                    }
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtProduct") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtProduct").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtProduct").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnProductDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnProductDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExpiryDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExpiryDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                }
            }
            
            
            if(document.getElementById("LotAtrributeCtrl1_txtExternalLot") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExternal").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExternal").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                }
            }
            
        }
        
        function clearHdnSkuID()
        {
            document.getElementById("hdnSkuID").value = "";
        }
        
        // 根据 预期量计算 体积 毛重 净重
        function ComputeOriginalQty(obj)
        {             
            var farmartLength = document.getElementById("hdnFormart").value;
            //obj.value.match(/^\+?(:?(:?\d+\.\d+)|(:?\d+))$/)判断是否是数值
            if(obj.value != "" && parseFloat(obj.value) >0 && obj.value.match(/^\+?(:?(:?\d+\.\d+)|(:?\d+))$/))
            {
              document.getElementById("<%=txtGrossWgt.ClientID %>").value =document.getElementById("<%=hdnGrossWgt.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
              document.getElementById("<%=txtNetWgt.ClientID %>").value =document.getElementById("<%=hdnNetWgt.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
              document.getElementById("<%=txtCube.ClientID %>").value =document.getElementById("<%=hdnCube.ClientID %>").value *obj.value*document.getElementById("<%=hdnUomValue.ClientID %>").value;
              //计算总价
              document.getElementById("<%=txtExtemdedrice.ClientID %>").value = parseFloat(document.getElementById("<%=hdnUnitPrice.ClientID %>").value) * parseFloat(obj.value) * parseFloat(document.getElementById("<%=hdnUomValue.ClientID %>").value);
                           
              //小数点后位数格式化
              document.getElementById("<%=txtGrossWgt.ClientID %>").value = eval(document.getElementById("<%=txtGrossWgt.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtNetWgt.ClientID %>").value = eval(document.getElementById("<%=txtNetWgt.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtCube.ClientID %>").value = eval(document.getElementById("<%=txtCube.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtExtemdedrice.ClientID %>").value = eval(document.getElementById("<%=txtExtemdedrice.ClientID %>").value).toFixed(farmartLength);
            }
            else
            {
              document.getElementById("<%=txtGrossWgt.ClientID %>").value = eval("0").toFixed(farmartLength);
              document.getElementById("<%=txtNetWgt.ClientID %>").value = eval("0").toFixed(farmartLength);
              document.getElementById("<%=txtCube.ClientID %>").value = eval("0").toFixed(farmartLength);
              document.getElementById("<%=txtOriginalQty.ClientID %>").value = eval("0").toFixed(farmartLength);
              document.getElementById("<%=txtExtemdedrice.ClientID %>").value = eval("0").toFixed(farmartLength);
            }
            
             if(obj.value != "" && parseFloat(obj.value) > 0 )
            {
              var qty = obj.value;
              var ivnqty = document.getElementById("txtInvQty").value;
              if(parseFloat(ivnqty)>0)
              {
                if(parseFloat(qty) > parseFloat(ivnqty))
                {
                  obj.style.backgroundColor='Yellow'; 
                }
                else
                {
                  obj.style.backgroundColor='White';
                }
              }
              else
              {
                obj.style.backgroundColor='Red';
              }
            }
        }
        
        function text_onkeypress(obj)
        {
        if(event.keyCode==13)
            { 
                ComputeExpectedQty(obj);
            } 
        }
        
        
        function textchanged()
        {
          document.getElementById("hdnPageType").value = "1";  
          setTimeout( " __doPostBack('<%=ASkuID.ClientID.Replace('_','$')%>','')",500);
        }
        
        function SaveSkuIDDuplicate()
	    {
	        if(confirm('<%=GetGlobalMsgResource("F4100_044") %>'))
	        {
	            document.getElementById("hdnSkuIDDuplicate").value = "Y";
	            document.getElementById("btnSave").click();
	        }
	    }
	    function SaveContinueSkuIDDuplicate()
	    {
	        if(confirm('<%=GetGlobalMsgResource("F4100_044") %>'))
	        {
	            document.getElementById("hdnSkuIDDuplicate").value = "Y";
	            document.getElementById("btnSaveContinue").click();
	        }
	    }
    </script>

</head>
<body onunload="SavePageValue('btnSave','hdnPageQty');" onkeydown="if(event.keyCode==13) {event.returnValue=false; textchanged();} ">
    <form id="F7013" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblAllocateRuleDetail" runat="server" CssClass="label_header" Text="发货订单明细"
                            meta:resourcekey="lblAllocateRuleDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>"
                            AccessKey="c" OnClick="btnCancel_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" OnClientClick="SethdnPageQty('hdnPageQty');"
                            meta:resourcekey="btnSave" />
                    </td>
                    <td>
                        <asp:Button ID="btnSaveContinue" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSaveContinue%>"
                            AccessKey="s" OnClientClick="clearHdnSkuID();SethdnPageQty('hdnPageQty');" OnClick="btnSaveContinue_Click"
                            meta:resourcekey="btnSaveContinue" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;自定义字段&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLineID" runat="server" CssClass="label" Text="行号" meta:resourcekey="lblLineID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblExternLineID" runat="server" CssClass="label" Text="外部订单行号" meta:resourcekey="lblExternLineID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" meta:resourcekey="lblVendorID"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" meta:resourcekey="txtLineID"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                        meta:resourcekey="ddlStatus">
                                    </asp:DropDownList>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtExternLineID" runat="server" CssClass="textbox" meta:resourcekey="txtExternLineID"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtVendorID_TextChanged"  meta:resourcekey="txtVendorID"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" meta:resourcekey="lblSkuID"></asp:Label><font
                                        color="red">*</font>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblSkuDesrc" runat="server" CssClass="label" Text="货品描述" meta:resourcekey="lblSkuDesrc"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblPackingID" runat="server" CssClass="label" Text="包装" meta:resourcekey="lblPackingID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUomID" runat="server" CssClass="label" Text="单位" meta:resourcekey="lblUomID"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" onkeyUp="SearchDataAjax(this,'SKU','hdnOwnerID');return false;"
                                        onblur="textchanged();" meta:resourcekey="txtSkuID"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" class="img" onclick="selectSku();" />
                                    <a onserverclick="txtSkuID_TextChanged" runat="server" style="display: none;" id="ASkuID">
                                    </a>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtSkuDesrc" runat="server" CssClass="textbox" meta:resourcekey="txtSkuDesrc"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtPackID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtPackID_TextChanged" meta:resourcekey="txtPackID"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectPack();" />
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlUomID" runat="server" CssClass="mediumselectbox" AutoPostBack="True" OnSelectedIndexChanged="ddlUomID_SelectedIndexChanged" meta:resourcekey="ddlUomID">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblOriginalQty" runat="server" CssClass="label" Text="订货数量"  meta:resourcekey="lblOriginalQty"></asp:Label><font
                                        color="red">*</font>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblPreallocatedQty" runat="server" CssClass="label" Text="预分配数量" meta:resourcekey="lblPreallocatedQty"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblAllocatedQty" runat="server" CssClass="label" Text="分配数量" meta:resourcekey="lblAllocatedQty"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblPackedQty" runat="server" CssClass="label" Text="拣货数量" meta:resourcekey="lblPackedQty"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtOriginalQty" runat="server" CssClass="textbox" onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg');ComputeOriginalQty(this);"  onkeydown= "text_onkeypress(this);" 
                                        meta:resourcekey="txtOriginalQty"></asp:TextBox> <a onserverclick="txtExpectedQty_TextChanged" runat="server" style="display: none;"
                                        id="aExpectedQty"></a>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtPreallocatedQty" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtPreallocatedQty"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtAllocatedQty" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtAllocatedQty"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtPackedQty" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtPackedQty"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblShippedQty" runat="server" CssClass="label" Text="发货数量" meta:resourcekey="lblShippedQty"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblPreallocateRuleID" runat="server" CssClass="label" Text="预分配规则"
                                        meta:resourcekey="lblPreallocateRuleID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblAllocateRuleID" runat="server" CssClass="label" Text="分配规则" meta:resourcekey="lblAllocateRuleID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblSkuRoTation" runat="server" CssClass="label" Text="库存周转规则" meta:resourcekey="lblSkuRoTation"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtShippedQty" runat="server" CssClass="textbox" Enabled="False"
                                        onblur="JavaScript:dataVer._Is123(this,'lblMsg')" meta:resourcekey="txtShippedQty"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlPreAllocateRuleID" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlPreAllocateRuleID">
                                    </asp:DropDownList>
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlAllocateRule" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlAllocateRule">
                                    </asp:DropDownList>
                                </td>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlSkuRotation" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlSkuRotation">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblSalsePrice" runat="server" CssClass="label" Text="单价"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblExtendedPrice" runat="server" CssClass="label" Text="总价"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblInvQty" runat="server" CssClass="label" Text="当前库存"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtSalsePrice" runat="server" CssClass="textbox" onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg')"
                                        OnTextChanged="txtSalsePrice_TextChanged" AutoPostBack="True"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtExtemdedrice" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtInvQty" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblOriginalLineID" runat="server" CssClass="label" Text="原订单行号"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblOriginalSku" runat="server" CssClass="label" Text="原货品"></asp:Label>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtOriginalLineID" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOriginalSku" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkboxOk2SubStitute" runat="server" CssClass="checkbox" Text="允许替代" />
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkboxIsSubStitute" runat="server" Enabled="false" CssClass="checkbox"
                                        Text="是否替代货品" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="入库日期" meta:resourcekey="lblReceiptDate"></asp:Label>
                                    <%--<asp:Label ID="lblExternalLot" runat="server" CssClass="label" Text="外部批号" meta:resourcekey="lblExternalLot"></asp:Label>--%>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCube" runat="server" CssClass="label" Text="体积" meta:resourcekey="lblCube"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblGrossWgt" runat="server" CssClass="label" Text="毛重" meta:resourcekey="lblGrossWgt"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblNetWgt" runat="server" CssClass="label" Text="净重" meta:resourcekey="lblNetWgt"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" meta:resourcekey="txtReceiptDate"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                                    <%--<asp:TextBox ID="txtExternalLot" runat="server" CssClass="textbox" meta:resourcekey="txtExternalLot"></asp:TextBox>--%>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCube" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtGrossWgt" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtNetWgt" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblLength" runat="server" CssClass="label" Text="长" meta:resourcekey="lblLength"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblWidth" runat="server" CssClass="label" Text="宽" meta:resourcekey="lblWidth"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblHeight" runat="server" CssClass="label" Text="高" meta:resourcekey="lblHeight"></asp:Label>
                                </td>
                                <td width="180px">
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtLength" runat="server" CssClass="textbox" AutoPostBack="True" OnTextChanged="txtUnitChanged_TextChanged"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtWidth" runat="server" CssClass="textbox" AutoPostBack="True" OnTextChanged="txtUnitChanged_TextChanged"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtHeight" runat="server" CssClass="textbox" AutoPostBack="True" OnTextChanged="txtUnitChanged_TextChanged"></asp:TextBox>
                                </td>
                                <td width="180px">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <table style="display: block; margin-left: 10px;">
                            <tr>
                                <td>
                                    <uc1:LotAtrributeCtrl ID="LotAtrributeCtrl1" runat="server" CtrlType="OT" />
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" meta:resourcekey="lblUdf1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" meta:resourcekey="lblUdf6"></asp:Label>
                                </td>
                                <td colspan="2">
                                    <asp:Label ID="lblPickingInstructions" runat="server" CssClass="label" Text="拣货指令"
                                        meta:resourcekey="lblPickingInstructions"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                                </td>
                                <td colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtPickingInstuctions" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtPickingInstuctions"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" meta:resourcekey="lblUdf2"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" meta:resourcekey="lblUdf7"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" meta:resourcekey="lblUdf3"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" meta:resourcekey="lblUdf8"></asp:Label>
                                </td>
                                <td colspan="2">
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                                </td>
                                <td colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf4" runat="server" CssClass="label" Text="自定义字段04" meta:resourcekey="lblUdf4"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf9" runat="server" CssClass="label" Text="自定义字段09" meta:resourcekey="lblUdf9"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" meta:resourcekey="lblUdf5"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <input type="hidden" id="hdnOwnerID" runat="server" />
                <input type="hidden" id="hdnUnitPrice" runat="server" />
                <input id="hdnFrom" runat="server" type="hidden" />
                <input id="hdnType" runat="server" type="hidden" />
                <input id="hdnOrderID" runat="server" type="hidden" />
                <input id="hdnSkuID" runat="server" type="hidden" />
                <input id="hdnIntransitID" runat="server" type="hidden" />
                <input id="hdnPageQty" runat="server" type="hidden" value="0" />
                <input id="hdnPageType" runat="server" type="hidden" value="0" />
                <input id="hdnFormart" runat="server" type="hidden" />
                <input id="hdnCube" runat="server" type="hidden" />
                <input id="hdnGrossWgt" runat="server" type="hidden" />
                <input id="hdnNetWgt" runat="server" type="hidden" />
                <input id="hdnUomValue" runat="server" type="hidden" />
                <input id="hdnExternOrderID" runat="server" type="hidden" />
                <asp:HiddenField ID="hdnLot1" runat="server" />
                <asp:HiddenField ID="hdnLot2" runat="server" />
                <asp:HiddenField ID="hdnLot3" runat="server" />
                <asp:HiddenField ID="hdnLot4" runat="server" />
                <asp:HiddenField ID="hdnLot5" runat="server" />
                <asp:HiddenField ID="hdnLot6" runat="server" />
                <asp:HiddenField ID="hdnLot7" runat="server" />
                <asp:HiddenField ID="hdnLot8" runat="server" />
                <asp:HiddenField ID="hdnLot9" runat="server" />
                <asp:HiddenField ID="hdnLot10" runat="server" />
                <asp:HiddenField ID="hdnProductDate" runat="server" />
                <asp:HiddenField ID="hdnExpiryDate" runat="server" />
                <asp:HiddenField ID="hdnExternal" runat="server" />
                <input id="hdnDataFormat" runat="server" type="hidden" />
                <input id="hdncalendarFlag" runat="server" type="hidden" />
                <input id="hdnSkuIDDuplicate" runat="server" type="hidden" />
                <input id="hdnSettingSkuIDDuplicate" runat="server" type="hidden" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>

